home *** CD-ROM | disk | FTP | other *** search
/ ShareWare OnLine 2 / ShareWare OnLine Volume 2 (CMS Software)(1993).iso / clipart / 256scan.zip / 256SCAN.TXT < prev    next >
Text File  |  1993-03-23  |  8KB  |  166 lines

  1.                DIRECTIONS and OTHER IMPORTANT STUFF
  2.  
  3. GENERAL AND PRELIMINARY STUFF:
  4.     If you're like me, you hate to trash your investment in your 256 gray
  5. scale scanner and then spend a hefty chunk of change for a color scanner.
  6. This program provides an inexpensive alternative.
  7.  
  8.     256SCAN is a straight-forward, alternative way to produce full color
  9. images from any 256 gray-scale capable scanner.  256SCAN is fast and once you
  10. have done it once or twice, easy to use.
  11.  
  12.     By using a red, green, and blue filtered PCX input (R.PCX, G.PCX and 
  13. B.PCX, respectively, a full 24-bit color Windows compatible .BMP (RGB.BMP)
  14. image is produced.  This image can be viewed, have the infinite number of
  15. colors reduced to 16 or 256 and can be converted to .GIF, .PCX, .TGA, or any
  16. other format.
  17.  
  18.     Detailed methods for using a flat-bed and hand-held scanner are provided.
  19.  
  20.  
  21. MATERIALS REQUIRED:
  22.     1)    Any 256 gray-scale scanner.
  23.     2)    A 286 or better computer.
  24.     3)  Three filters (see paragraph on filters, below).
  25.     4)  Something to scan (photo, magazine picture, etc.).
  26.     5)  If using a hand scanner, a scanner guide such as the ScanAlign by
  27.     American Business Concepts.
  28.     6)  A small amount of scotch tape or masking tape.
  29.     7)  A file viewer program (such as VPIC, or Graphics Workshop).  I feel
  30.         Graphics Workshop is one of the better viewing/conversion
  31.         programs.  It's available on most BBS's and from most of the 
  32.     shareware catalogs.  I highly recommend it.
  33.  
  34. Filters:
  35.     You will need three filters, a red, a green, and a blue one.  You can buy
  36. photographic quality gel filters or acquire two sheets of each color of
  37. overhead projector film.  These are relatively cheap and work like a charm.
  38.  
  39.  
  40. BASIC METHOD:
  41.     1)  Three scans of the color item (photo? drawing?) need to be made.  One
  42.     each using a red filter, a green filter, and a blue filter.  These
  43.     need to be in 256 gray-scale PCX format.  The scans can be made
  44.     directly into PCX format or converted using a paint or conversion
  45.     program. (See below for details on using a flat-bed or hand-held
  46.     scanner.
  47.  
  48.     2)  The PCX files need to be labeled R.PCX for the red scan, G.PCX for
  49.     the green scan, and B.PCX for the blue scan.
  50.  
  51.     3)    All three PCX's must be in the same sub-directory as 256SCAN.EXE.
  52.  
  53.     4)  Type 256SCAN and sit back until it's done (depending upon the speed
  54.     of your machine, it won't take more than 2-3 sips of coffee.
  55.  
  56.     5)  256SCAN produces 4 output files: R.BIN, G.BIN, B.BIN and RGB.BMP.
  57.     Make sure all three BIN files are the same size in bytes.  If not,
  58.     then the input .PCX's were not the same physical size (in pixels) The
  59.     BIN and PCX files can and should be deleted.
  60.  
  61.     6)    This is where you'll now need your file conversion or paint program.
  62.     Since I prefer Graphics Workshop, I describe it, although other
  63.     programs may work as well.
  64.  
  65.     7)  Bring in RGB.BMP (the Windows Paint works well for this) and check
  66.     that it is not skewed (if it is, see Skewing, below for corrective
  67.     action.
  68.  
  69.     8)    Flip the RGB.BMP vertically and save it.  Don't ask why, but for 
  70.     some strange reason, Microsoft wants their BMP files to read from the
  71.     end, not the beginning.
  72.  
  73.     9)    If you'll be using the BMP output with Windows and a proper 24-Bit
  74.     video card, you'll have a color image.
  75.  
  76.    10)    Use your conversion program to convert it to a .GIF, .PCX or whatever
  77.     format you choose and reduce to 256 colors.  Most photos will need
  78.     to be dithered to look right.  The Stucki dither provides the best
  79.     dithering.  (This is one of the areas that Graphics Workshop shines.)
  80.     Do note that some scanners/paint programs dump their PCX files in a
  81.     negative image format (like a photographic negative) which can be 
  82.     changed by using Graphics Workshop.
  83.  
  84.    11)    If the colors do not appear right, some viewers, such as VPIC will
  85.     allow color adjustments.  Otherwise, rescan the R.PCX, G.PCX, and 
  86.     B.PCX making adjustments to the brightness to compensate.  After a
  87.     little practice, you'll get the hang of it.
  88.  
  89.    12)    Enjoy your color image.
  90.  
  91.  
  92. FLAT-BED SCANNER METHOD:
  93.     1)    Place the photo on the scanner glass against the side.  Use a piece
  94.     of tape to secure it.  DO NOT put the tape on the glass.
  95.         
  96.     2)  Place the red filter under the photo and scan.  Save as R.PCX.  If
  97.     .PCX is not an output choice, save as your scanner output and convert
  98.     to R.PCX using a paint, VPIC, or Graphics Workshop.  After viewing 
  99.     the output (RGB.BMP) you may find you need a double layer of filter.
  100.       Remove the red filter from the scanner.
  101.  
  102.     3)    Repeat for the green filter (save as G.PCX) and the blue filter (save
  103.     as B.PCX).
  104.  
  105.     4)    Use the general method (above) to finish the picture.
  106.  
  107.  
  108. HAND-HELD SCANNER METHOD:
  109.     1)    Place the photo on the scanner guide.
  110.  
  111.     2)    Place the red filter on the scanner guide.
  112.  
  113.     3)    Place the scanner into the scanner guide and scan to produce a R.PCX.
  114.  
  115.     4)    Replace the red filter with the green filter and rescan exactly.  
  116.     Repeat for the blue filter.
  117.  
  118.     5)    Use the general method (above) to finish the picture.
  119.  
  120.  
  121. PROBLEMS:
  122.     A few things can go wrong or at least have the appearance of being wrong.
  123. For the most part the correction is fairly simple.
  124.  
  125.  
  126. Skewing:
  127.     If the image appears to be skewed (i.e.: a line running from one corner
  128. diagonally down the image to the opposite corner. The image will appear to be
  129. split on each side of the line.  This is cause by variations in scanner
  130. output.  The cure is easy.  Try scanning as a .TIF or other output and
  131. convert to a .PCX using Graphics Workshop, VPIC, or a paint program.  If that
  132. fails, scan using a multiple of screen width for the width of the image 
  133. (i.e.: 640 wide, 320 wide, 160 wide or 80 wide).
  134.  
  135. Color Abberations:
  136.     These are simple to cure.  Change the brightness setting for the color
  137. that is causing the problem.  A little experimentation will provide the best
  138. setting.  If that seems like too much trouble, various viewing programs (VPIC
  139. for example) allow the color (red, green, blue) to be adjusted as well as 
  140. modifying the contrast and brightness.
  141.  
  142.  
  143. MISCELLANEOUS BACKGROUND, ACKNOWLEDGEMENTS, AND OTHER STUFF:
  144.  
  145. Background:
  146.     This program incorporates techniques from both the graphics programmer's
  147. world and the printing world.  When a printer makes a full color printing, 
  148. the original image is turned into negative using filters to produce a red,
  149. yellow, blue, and a black negative.  These are then used to produce the 
  150. printing plates and thus a color print.
  151.  
  152.     This program uses the same concept.  But instead of producing a negative,
  153. a 256 grey-scale .PCX is used to provde the relative strength of red, green,
  154. and blue components of a 24-bit full color image.
  155.  
  156.  
  157. Acknowledgements:
  158.     Even though we've never met or spoken, I am deeply indebted to Steve Rimmer for his books BITMAPPED GRAPHICS, and SUPERCHARGED BITMAPPED GRAPHICS and for his program GRAPHICS WORKSHOP.  He has also written DESKTOP PAINT256.
  159. If he hadn't written them, I wouldn't have had a clue as to how to write this program.  If you are into graphics, these two books should definitely be on
  160. your bookshelf and these two programs should be in your repretoire.
  161.  
  162. Miscellaneous Stuff:
  163.     This program was written using Borland C++ (not Turbo).  The source code
  164. is included.  If you have any improvements or suggestions, please send them 
  165. to the Author.
  166.